initialize{
  super.initialize();
  _weld=new Weld();
  _weldContainer=_weld.initialize();
  _weldContainer.event().select(ContainerInitialized.class).fire(new ContainerInitialized());
    Context ctx=(Context)new InitialContext().lookup(BINDING_CONTEXT);
    ctx.rebind(BEAN_MANAGER_NAME,getBeanManager());
 catch (  NamingException e) {
    e.printStackTrace();
}
before{
  if (deployment instanceof SimpleTestDeployment) {
    if (simpleCdiDeploymentType == null) {
      _simpleCdiDeployment=simpleCdiDeploymentType.newInstance();
      _simpleCdiDeployment.setParentDeployment(deployment);
      ServiceDomain domain=new ServiceDomainManager().createDomain();
      _simpleCdiDeployment.init(domain,getTestKit().getActivators());
      _simpleCdiDeployment.start();
 catch (    Exception e) {
      e.printStackTrace();
}
getBeanManager{
  return _weldContainer.getBeanManager();
}
getBean{
  BeanManager beanManager=getBeanManager();
  Set<Bean<?>> beans=beanManager.getBeans(name);
  if (beans != null && !beans.isEmpty()) {
    return beans.iterator().next();
}
getBean{
  BeanManager beanManager=getBeanManager();
  Set<Bean<?>> beans=beanManager.getBeans(type);
  if (beans != null && !beans.isEmpty()) {
    return beans.iterator().next();
}
getObject{ }
getObject{
  return type.cast(getObject(name));
}
getObject{
  return type.cast(createBeanInstance(getBean(type)));
}
after{
  if (_simpleCdiDeployment != null) {
    _simpleCdiDeployment.stop();
    _simpleCdiDeployment.destroy();
}
uninitialize{
  if (_weld != null) {
    _weld.shutdown();
    _weld=null;
 else {
}
createBeanInstance{
  BeanManager beanManager=getBeanManager();
  return beanManager.getReference(bean,bean.getBeanClass(),creationalContext);
}
